import sys
sys.path.append("..")

from lib.Spider import Spider

class NetBian(Spider):
    def getImageAll(self):
        return self.bs4.select("#main > div.list > ul > li> a > img") 


    @Spider.Decorators.attr("src")
    def getImageAllHref(self):
        return self.getImageAll()
    

if __name__ == "__main__":
    # 获取所有壁纸链接
    print(NetBian("http://www.netbian.com/").getImageAllHref())